import { getWay,putWay,delWay,postWay } from "@/utils/request.js";
/**
 * 地址接口
 */
// 地址列表接口
export const addressList = (data) => getWay("/p/address/list", data);
export const addressList1 = (data) => getWay("/p/address/list", data);

export const addAddr = (data) => postWay("/p/address/addAddr", data)

export const updateAddr = (data) => putWay("/p/address/updateAddr", data)

export const listByPid = (data) => getWay("/p/area/listByPid", data)

export const defaultAddr = (data, bodyData) => putWay(`/p/address/defaultAddr/${data}`, bodyData)

export const deleteAddr = (data, bodyData) => delWay(`/p/address/deleteAddr/${data}`, bodyData)
